home *** CD-ROM | disk | FTP | other *** search
- Toolchest
-
- In this month's toolchest we describe a program for interactively
- editing link projections. Conceptually, a link (in 3 dimensions) is
- a collection of non-intersecting closed curves. A link projection
- is an orthographic projection of such a link onto a plane, with
- over/under crossings appropriately marked. Topologically the link
- projection contains all the information of the link. Moreover, a
- link projection is somewaht easier to visualize and edit.
-
- The program is written in "vanilla" XWindows, and *should*
- compile and run on any machine running X. To date it has been
- tested on Sun3, Sun4, and SGI architectures. The makefile uses
- ranlib to create library archives, which may cause problems
- on some versions of Unix.
-
- As usual the source, makefile, and this article are available via
- anonymous ftp from our site: poincare.geom.umn.edu. The files are
- contained in the compressed tar file link_edit.tar.Z in the
- directory ~ftp/pub.
-
- The picture shows the link editor while it is being used.
- Visually the program is divided into two areas: the drawing area
- and the menu area. Naturally, all editing/selecting is done with the
- mouse, and the menu selections determine the effect of the mouse in the
- editing window. The program is highly modal, with the current mode
- always being clearly visible in the menu area. The basic units of
- editing are Points and Strands: A strand is an (open or closed)
- sequence of points, and the link is made up of several strands, together
- with over/under crossing information wherever strands intersect.
-
- Following is a brief description of each menu item:
-
- Get Link File: Read a link from a file.
- Some sample files are contained in the Examples
- directory.
-
- Save Link File: Save the link to a file. The format is particular
- to this program, but is ascii readable. The extension
- ".lnkp" (for link_projection) is automatically
- added and only files with this extension are
- presented for choosing.
- Save Link PS: Save a postscript file of the drawing. The extension
- ".ps" is automatically added.
- Save Link 3D: Save as actual 3d strands, where the over/under
- crossings are now implicit in the 3d coordinates.
- The format is the same as the Geometry Project LINK
- format. The extension ".lnk" is automatically added.
- Clear: Clear the current link and start over.
- Settings: Toggle the following parameters:
-
- Hide/Show Rulers
- Hide/Show Arrows
- Hide/Show Vertices
- Hide/Show Axes
- QUIT: Exit the link editor.
-
-
- Add Point: Add a point to the current link. This mode is smart enough to
- know that a link should be closed when clicking near the
- starting point, and that a point should be added interior
- to an edge when clicking near that edge.
- Move Point: Move a point of any strand.
- Delete Point: Delete a point from any strand.
- Close Strand: Close a strand.
- Open Strand: Open a closed strand.
- Join Strands: Join two strands into one.
-
- Move Strand: Select and move a strand.
- Flip Crossing: Flip over/under crossing of any strand.
- Reverse Arrows: Reverse a strand's direction.
- Delete Strand: Delete strands.
- Select Strand: Select a strand to be the current one.
-
- Hide Strand: Select and hide a strand.
- Show All: Show all strands.
-
- Shift View: Move the view.
- Zoom View: Zoom the view.
- Center View: Center the link in the editing window.
-
- BUGS: The center view button sometimes needs to be applied twice to work.
- The file chooser truncates filenames to 10 characters.
- The postscript files are mirror reversals of the original,
- they come out smaller than you probably want, and they don't
- include the direction arrows.
-